
import lejos.nxt.*;
import lejos.robotics.navigation.*;


public class TravelTest {
	public static void main(String[] args) {
		
		DifferentialPilot navigator = new DifferentialPilot(5.6f, 12.5f, Motor.A, Motor.C);
		
		navigator.travel(100, true);
		
		while (navigator.getMovement().getDistanceTraveled() < 99)
			System.out.println(" "+navigator.getMovement().getDistanceTraveled());
		
		navigator.travel(-100, true);
		
		Button.waitForPress();
	}
}

